﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class admin
    {
		public string id=null;
		public string user_name=null;
		public string password=null;
		public string salt=null;
		public string typea=null;
        public string __name__;
        public admin(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.password = string.Format("{0}.password",__name__);
			this.salt = string.Format("{0}.salt",__name__);
			this.typea = string.Format("{0}.typea",__name__);
        }
        public admin()
        {
			this.id = string.Format("{0}.id",__name__);
			this.user_name = string.Format("{0}.user_name",__name__);
			this.password = string.Format("{0}.password",__name__);
			this.salt = string.Format("{0}.salt",__name__);
			this.typea = string.Format("{0}.typea",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "admin";
            }
            else
            {
                return string.Format("admin as {0}",__name__);
            }
        }
    }
}